package com.rpc.spring;

import com.rpc.api.ITestService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test2 {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans.xml");
        ITestService testService = (ITestService) applicationContext.getBean("testService");
        testService.test();
    }
}
